'use strict';

function get_union(collection_a, collection_b) {
  var result = [];
 let  arr=collection_a.concat(collection_b);
    for(let i=0; i<arr.length;i++){
           if(result.includes(arr[i])){
             
           }else{
              result.push(arr[i]);
           }
    }
    console.log(result);
  return result; //在这里写入代码
}

module.exports = get_union;

var collection_a = [10, 27, 28, 19, 5];
var collection_b = [5, 78, 28, 19, 23];
var collection_c = [10, 27, 28, 19, 5, 78, 23];

get_union(collection_a, collection_b)

